﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SisVenda.Web
{
    public partial class PaginaErro : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Exception ex = Server.GetLastError().GetBaseException();
            string f = Request.Form.ToString();
            string q = Request.QueryString.ToString();

            tbxErros.Text += "Erro: " + ex.Message.ToString();
            tbxErros.Text += System.Environment.NewLine;
            tbxErros.Text += "Origem: " + ex.Source;
            tbxErros.Text += System.Environment.NewLine;
            tbxErros.Text += "Form: " + f;
            tbxErros.Text += System.Environment.NewLine;
            tbxErros.Text += "QueryString: " + q;
        }
    }
}